<?php

class Benservi_Forms_File extends Zend_Form{

    public function init(){

        $file = new Zend_Form_Element_File('file');
        $file->setLabel('')
             ->setRequired(true)             
             ->addValidator('NotEmpty')
             ->addValidator('Count', false, 1)           
             ->setDestination(APPLICATION_UPLOADS_DIR);

        $submit = new Zend_Form_Element_Submit("submit");
        $submit->setLabel("Enviar")
               ->setAttrib('class', 'button-left');

        $this->addElements(array($submit,$file));

    }

}

?>
